package com.lzc.springboot_jsp_shiro.service.impl;

import com.lzc.springboot_jsp_shiro.dao.PermissionDao;
import com.lzc.springboot_jsp_shiro.entity.Permission;
import com.lzc.springboot_jsp_shiro.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PermissionServiceImpl implements PermissionService {

    @Autowired
    private PermissionDao permissionDao;

    @Override
    public List<Permission> findPermissionsByRid(Integer rid) {
        return permissionDao.findPermissionsByRid(rid);
    }
}
